翻訳と辞書
Words near each other
・ Well, North Yorkshire
・ Well, Well, Well (Duffy song)
・ Well, You Needn't
・ Well-behaved
・ Well-behaved statistic
・ Well-being
・ Well-bird exam
・ Well-covered graph
・ Well-defined
・ Well-Deserved Obscurity
・ Well-Done (album)
・ Well-field system
・ WELL-FM
・ Well-formed
・ Well-formed document
Well-formed element
・ Well-formed formula
・ Well-formed Petri net
・ Well-Founded Fear
・ Well-founded phenomenon
・ Well-founded relation
・ Well-founded semantics
・ Well-known text
・ WELL-LD
・ Well-made play
・ Well-Manicured Man
・ Well-mannered
・ Well-order
・ Well-ordering principle
・ Well-ordering theorem


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Well-formed element : ウィキペディア英語版
Well-formed element

In web page design, and generally for all markup languages such as SGML, HTML, and XML, a well-formed element is one that is either
*opened and subsequently closed,
*an empty element, which in that case must be terminated,
*properly nested so that it does not overlap.
For example, in HTML: word is a well-formed element, while word is not, since the bold element is not closed. In XHTML, empty elements (elements that inherently have no content) should be closed by putting a slash at the end of the opening tag, e.g. ,
,
, etc. In HTML, there is no closing tag for such elements, and no slash is added to the opening tag.
In a well-formed document,
*all elements are well-formed, and
*a single element, known as the root element, contains all of the other elements in the document.
For example, the code below is not well-formed HTML, because the ''em'' and ''strong'' elements overlap:


Normal emphasized strong emphasized strong



Normal emphasized strong emphasized strong


Alternatively emphasized strong emphasized strong



In XML, the phrase ''well-formed document'' is often used to describe a text that follows all the syntactic rules labelled as well-formedness rules in the XML specification: strictly speaking the phrase is tautological, since a text that does not follow these rules is not an XML document. The rules for well-formed XML documents go beyond the general requirements for the markup languages mentioned above. The additional rules include, for example, a rule to quote attribute values, case-sensitiveness of tag names, rules about the characters that can appear in names and elsewhere, the syntax of comments, processing instructions, entity references, and CDATA sections, and many other similar details. Sometimes the adjective well-formed is used to contrast with valid: a valid XML document is one that is not only well-formed, but also conforms to the grammar defined in its own DTD (Document Type Definition).



抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Well-formed element」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.